package org.darkforest.common.services;

import org.darkforest.model.StatOrderGoods;

import java.util.List;

/**
 * Created by valentina on 15/6/26.
 * 统计操作类
 */
public interface StatService {

    /**
     * 获取最近N周之内的会员总数，参数为空时统计所有数据
     * @param nearTime 精确到秒
     * @return
     */
    public Integer getMemberCount(Integer nearTime);

    public Integer getGoodsCount(Integer nearTime);

    public Integer getOrderCount(Integer nearTime);

    /**
     * 代理商统计
     * @param nearSecond
     * @return
     */
    public Integer getProxyCount(Integer nearSecond, Integer state);
    /**
     * 店铺统计
     * @param
     * @return
     */
    public Integer getStoreCount(Integer state);
    /**
     * 待审核店铺统计
     * @param
     * @return
     */
    public Integer getStoreJoinCount(Integer state);
    /**
     * 根据X集合查询Y值
     * @param nearSecond
     * @return
     */
    List<String> findYListByXList(List<String> xLists);
    /**
     * 根据商铺ID查询Y值
     * @param nearSecond
     * @return
     */
    List<StatOrderGoods> findYListByStortId(Integer storeId);
    /**
     * 根据商铺ID查询订单统计
     * @param nearSecond
     * @return
     */
    StatOrderGoods findstatisticalByStortId(Integer storeId);

}
